<?php
include("sqlconnect.php");




$ccategory=$_POST['category'];


$query=("INSERT INTO category_list(category_name) VALUES('$ccategory')");
mysql_query($query) or die("error in inserting");
$query1=("INSERT INTO top_category_list(category_name) VALUES('$ccategory')");
mysql_query($query1) or die("error in inserting");
header('Location: tab2.php');

?>